package vip.bblog.elasticsearch.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author yuyong
 * @since 2019-06-12
 */
public class BlogArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章id
     */
    private String id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章摘要（简介）
     */
    private String summary;

    /**
     * 摘要图片，封面
     */
    @TableField("summaryImg")
    private String summaryImg;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 发布人id
     */
    private String publisher;

    /**
     * 状态，具体到字典数据库看
     */
    private String status;

    /**
     * 1:顶置，0:默认不顶置
     */
    @TableField("isTop")
    private String isTop;

    /**
     * 1:显示，0:默认不显示，需要手动设置显示
     */
    @TableField("isVisible")
    private String isVisible;

    /**
     * 浏览量
     */
    private Long pv;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("updateTime")
    private LocalDateTime updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
    public String getSummaryImg() {
        return summaryImg;
    }

    public void setSummaryImg(String summaryImg) {
        this.summaryImg = summaryImg;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getIsTop() {
        return isTop;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }
    public String getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(String isVisible) {
        this.isVisible = isVisible;
    }
    public Long getPv() {
        return pv;
    }

    public void setPv(Long pv) {
        this.pv = pv;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BlogArticle{" +
        "id=" + id +
        ", title=" + title +
        ", summary=" + summary +
        ", summaryImg=" + summaryImg +
        ", content=" + content +
        ", publisher=" + publisher +
        ", status=" + status +
        ", isTop=" + isTop +
        ", isVisible=" + isVisible +
        ", pv=" + pv +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
